package com.share.shop.h5.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2023-03-09
 */
@Data
@Accessors(chain = true)
@TableName("sc_order")
public class Order implements Serializable{

    private static final long serialVersionUID=1L;
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 商户id */
    @TableField(value = "merchant_id")
    private String merchantId;
    /** 支付总价 */
    private BigDecimal price;
    /** 本地下单购买的商品id,逗号分割 */
    @TableField(value = "goods_ids")
    private String goodsIds;
    /** 订单状态：1待支付,2已支付，3已取消，4已删除 */
    private String status;
    /** 创建时间 */
    @TableField(value = "create_time")
    private Date createTime;

}
